import request from '@/utils/request'

// 查询可服务司机列表
export function listService(query) {
  return request({
    url: '/boss/service/list',
    method: 'get',
    params: query
  })
}

// 查询可服务司机详细
export function getService(sendServiceId) {
  return request({
    url: '/boss/service/' + sendServiceId,
    method: 'get'
  })
}

// 新增可服务司机
export function addService(data) {
  return request({
    url: '/boss/service',
    method: 'post',
    data: data
  })
}

// 修改可服务司机
export function updateService(data) {
  return request({
    url: '/boss/service',
    method: 'put',
    data: data
  })
}

// 删除可服务司机
export function delService(sendServiceId) {
  return request({
    url: '/boss/service/' + sendServiceId,
    method: 'delete'
  })
}
